package com.qianchang.microfinance.bean;

/**
 * 版 权: 深圳市迪蒙网络科技有限公司
 * 描 述:
 * 修 改 人: zhoulai
 * 修改时间: 2017/9/1 17:04
 */


public class LoanType {
    //    CASH("0", "现金贷"),COST("1", "消费贷"),DIYA("2", "抵押贷"),HOUSE_RENT("3", "租房分期"),CAMPUS("4", "学生贷"),OWNER("5", "业主贷");
    public static final String JBD = "0";//金保贷
    public static final String XSD = "4";//学生贷
    public static final String YZD = "5";//业主贷
    public static final String DYD = "2";//抵押贷


    public static String getNameByType(String type) {
        String name = "";
        if (type == null) {
            return name;
        }
        switch (type) {
            case "0":
                name = "cash";
                break;
            case "2":
                name = "diya";
                break;
            case "4":
                name = "campus";
                break;
            case "5":
                name = "owner";
                break;
        }
        return name;
    }

}
